import type { FormRules } from "element-plus";
import { reactive } from "vue";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  paperName: [{ required: true, message: "请输入", trigger: "blur" }],
  paperType: [{ required: true, message: "请输入", trigger: "blur" }],
  firstAuthorType: [{ required: true, message: "请输入", trigger: "blur" }],
  firstAuthor: [{ required: true, message: "请输入", trigger: "blur" }],
  secondAuthorType: [{ required: true, message: "请输入", trigger: "blur" }],
  secondAuthor: [{ required: true, message: "请输入", trigger: "blur" }],
  correspondingAuthor: [{ required: true, message: "请输入", trigger: "blur" }],
  affiliatedUnit: [{ required: true, message: "请选择", trigger: "change" }],
  proceedings: [{ required: true, message: "请输入", trigger: "blur" }],
  includeLevel: [{ required: true, message: "请选择", trigger: "change" }],
  threeHighCategory: [{ required: true, message: "请选择", trigger: "change" }],
  submitDate: [{ required: true, message: "请选择", trigger: "change" }]
});
